<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link rel="stylesheet" type="text/css" href="css/base.css" />
		<base href="<%=basePath%>">

		<title>Reservar Paquete Turistico</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<f:view>
			<h:form id="reservarPaqueteForm">				
				<h:commandLink action="terminar" value="Terminar" immediate="true" />
				<hr>

				<h1>Reserva de paquete</h1>
				
				<h:message for="reservarPaqueteForm" errorClass="error"></h:message>
				<h:panelGrid border="0" columns="3">
					<h:outputText value="Numero de vuelo"></h:outputText>
					<h:inputText id="nroVuelo" value="#{reservarPaqueteBean.nroVuelo}"
						required="true" maxlength="20" size="20" />
					<h:message for="nroVuelo" errorClass="error"></h:message>

					<h:outputText value="Numero de asiento"></h:outputText>
					<h:inputText id="nroAsiento"
						value="#{reservarPaqueteBean.nroAsiento}" required="true"
						maxlength="20" size="20" />
					<h:message for="nroAsiento" errorClass="error"></h:message>
				</h:panelGrid>
				<p></p>
				<h:commandButton action="#{reservarPaqueteBean.reservarPaquete}"
					value="Reservar Vuelo"/>
				<h:commandButton action="#{reservarPaqueteBean.getVuelos}" value="Buscar vuelos"/>

			</h:form>
		</f:view>
	</body>
</html>